﻿using DomenModel;
using System;
using System.Collections.Generic;


namespace Model.Service
{
    public interface IOrderingService
    {
        List<OrderDetails> GetPaginationListOfOrderDetails(int page, int itemsOnPage, string orderUsersBy, int orderId);
        long GetCountOfOrdersDetails(int orderId);
        long GetCountOfOrdersDetails(string searchString, string listSelectField, string listSelectCondition, int orderId);

        List<Order> GetPaginationListOfOrder(int page, int itemsOnPage, string orderUsersBy, string userName);
        long GetCountOfOrders(string userName);
        long GetCountOfOrders(string searchString, string listSelectField, string listSelectCondition, string userName);

        List<Item> GetItems(string sortOrder,string searchString);
        void AddItemToOrder(int orderId, int itemId, string name, decimal price, int quantity, string dimension);
    }
}
